package net.sk.china.city.service.impl;

import java.util.List;

import net.sk.china.city.service.IArActivityRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import net.sk.china.city.mapper.ArActivityRecordMapper;
import net.sk.china.city.domain.ArActivityRecord;

/**
 * 活动记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-07
 */
@Service
public class ArActivityRecordServiceImpl implements IArActivityRecordService
{
    @Autowired
    private ArActivityRecordMapper arActivityRecordMapper;

    /**
     * 查询活动记录
     * 
     * @param pkId 活动记录主键
     * @return 活动记录
     */
    @Override
    public ArActivityRecord selectArActivityRecordByPkId(Long pkId)
    {
        return arActivityRecordMapper.selectArActivityRecordByPkId(pkId);
    }

    /**
     * 查询活动记录列表
     * 
     * @param arActivityRecord 活动记录
     * @return 活动记录
     */
    @Override
    public List<ArActivityRecord> selectArActivityRecordList(ArActivityRecord arActivityRecord)
    {
        return arActivityRecordMapper.selectArActivityRecordList(arActivityRecord);
    }

    /**
     * 新增活动记录
     * 
     * @param arActivityRecord 活动记录
     * @return 结果
     */
    @Override
    public int insertArActivityRecord(ArActivityRecord arActivityRecord)
    {
        return arActivityRecordMapper.insertArActivityRecord(arActivityRecord);
    }

    /**
     * 修改活动记录
     * 
     * @param arActivityRecord 活动记录
     * @return 结果
     */
    @Override
    public int updateArActivityRecord(ArActivityRecord arActivityRecord)
    {
        return arActivityRecordMapper.updateArActivityRecord(arActivityRecord);
    }

    /**
     * 批量删除活动记录
     * 
     * @param pkIds 需要删除的活动记录主键
     * @return 结果
     */
    @Override
    public int deleteArActivityRecordByPkIds(Long[] pkIds)
    {
        return arActivityRecordMapper.deleteArActivityRecordByPkIds(pkIds);
    }

    /**
     * 删除活动记录信息
     * 
     * @param pkId 活动记录主键
     * @return 结果
     */
    @Override
    public int deleteArActivityRecordByPkId(Long pkId)
    {
        return arActivityRecordMapper.deleteArActivityRecordByPkId(pkId);
    }
}
